
#ifndef __AGENT_H__
#define __AGENT_H__

#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <strings.h>
#include <signal.h>
#include <errno.h>
#include <ctype.h>
#include <err.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <netdb.h>
#include <fcntl.h>
#include <arpa/inet.h>
#include <sys/time.h>
#include <sys/resource.h>

#include <event.h>

#include "base_proto.h"
#include "proto_pack.h"

#include "config.h"
#include "sockfd.h"
#include "msg_proc.h"

struct global_t
{
    int listen_fd;
    struct event_base *ev_base;
    struct event *ev_accept;
    int connect_count;
    struct connect_t connect[DEF_CLI_MAX];
} global;

#endif // __AGENT_H__
